package Day12;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class Text5 {
    public static void main(String[] args) throws IOException {
       /* FileOutputStream fos = new FileOutputStream("Day_01/a.txt");
        String str = "kankeloayehaoshuai";
        byte[] bytes = str.getBytes();
        fos.write(bytes);
        fos.close();*/
/*

        FileOutputStream file = new FileOutputStream("Day_01/a.txt");
        String str = "jjjjjjjhhhj";
        byte[] bytess = str.getBytes();
        file.write(bytess);
        file.close();
*/

      /*  //换行打印
        FileOutputStream fos = new FileOutputStream("Day_01/a.txt");
        String str1 = "pppppppp";
        byte[] bytes1 = str1.getBytes();
        fos.write(bytes1);
        //fos.close();*/

      /*  //在写一个换行符就可以了
        String wrap = "\n\n";
        byte[] bytes2 = wrap.getBytes();
        fos.write(bytes2);

        String str3 = "8888";
        byte[] bytes3 = str3.getBytes();
        fos.write(bytes3);
        fos.close();*/

/*

        String str2 = "iiiiiiiii";
        byte[] bytes3 = str2.getBytes();
        fos.write(bytes3);
        fos.close();
*/


        FileOutputStream fos = new FileOutputStream("Day_01/a.txt");
        String str1 = "acbde";
        byte[] byte1 = str1.getBytes();
        fos.write(byte1);

        String str2 = "ooo";
        byte[] byte3 = str2.getBytes();
        fos.write(byte3);
        fos.close();



















    }
}
